/*
 * @Description: 登录请求api
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2020-12-09 09:15:48
 * @LastEditors: Seven
 * @LastEditTime: 2020-12-09 11:46:52
 */
import request from '~/api/request';

// 获取验证码
export const getcode = function(phone){
    return request.post(`/edu/sys/sendSMS`,{
        phone,
        source:1
    })
}

// 发起登录请求
export const goLogin = function(phone,code){
    return request.post(`/pc/userPub/login`,{
        phone,
        code
    })
}

// 获取用户信息
export const getUserInfo = function(){
    return request.post(`/pc/user/info`)
}